@extends('admin._layout')

@section('breadcrumb')
    <li>
        <i class="icon-home home-icon"></i>
        <a href="#">首页</a>
    </li>
    <li class="active">贷款产品管理</li>
@stop

@section('page-header')
    <h1>
        贷款产品
        <small>
            <i class="icon-double-angle-right"></i>
            编辑
        </small>
    </h1>
@stop

@section('page-content')
    <div class="col-xs-12">
        <form class="form-horizontal" action="/admin/loan/add" role="form" method="post" enctype="multipart/form-data">
            <input type="hidden" value="{{$loan->id}}" name="id">
            {{ csrf_field() }}
            <div class="form-group">
                <label class="col-sm-2 control-label" for="fileInput">头像</label>
                <div class="col-sm-4">
                    <input type="file" id="exampleInputFile" name="icon">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 公司名 </label>
                <div class="col-sm-4 input-group">
                <span class="input-group-addon">
                    <i class="icon-envelope"></i>
                </span>
                    <input class="form-control" type="text" name="company_name" value="{{$loan->company_name}}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 客服电话 </label>
                <div class="col-sm-4 input-group">
                <span class="input-group-addon">
                    <i class="icon-envelope"></i>
                </span>
                    <input class="form-control" type="text" name="phone" value="{{$loan->phone}}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 产品url </label>
                <div class="col-sm-4 input-group">
                <span class="input-group-addon">
                    <i class="icon-envelope"></i>
                </span>
                    <input class="form-control" type="text" name="loan_url" value="{{$loan->loan_url}}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 贷款产品名称 </label>
                <div class="col-sm-4 input-group">
                <span class="input-group-addon">
                    <i class="icon-envelope"></i>
                </span>
                    <input class="form-control" type="text" name="name" value="{{$loan->name}}">
                </div>
            </div>


            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 职业 </label>
                <div class="col-sm-4 input-group">
                <span class="input-group-addon">
                    <i class="icon-envelope"></i>
                </span>
                    <input class="form-control" type="text" name="job" value="{{$loan->job}}">
                </div>
            </div>


            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 利率类别 </label>
                <div class="col-sm-4 input-group">
                <span class="input-group-addon">
                    <i class="icon-envelope"></i>
                </span>
                    <input class="form-control" type="text" name="rate_type" value="{{$loan->rate_type}}">
                </div>
            </div>


            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 利率 </label>
                <div class="col-sm-4 input-group">
                <span class="input-group-addon">
                    <i class="icon-envelope"></i>
                </span>
                    <input class="form-control" type="text" name="rate" value="{{$loan->rate}}"style="width: 50px;">%
                </div>
            </div>



            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 成功率 </label>
                <div class="col-sm-4 input-group">
                <span class="input-group-addon">
                    <i class="icon-envelope"></i>
                </span>
                    <input class="form-control" type="text" name="success_rate" value="{{$loan->success_rate}}"style="width: 50px;">%
                </div>
            </div>


            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 贷款最小额 </label>
                <div class="col-sm-4 input-group">
                <span class="input-group-addon">
                    <i class="icon-envelope"></i>
                </span>
                    <input class="form-control" type="text" name="min_amount" value="{{$loan->min_amount}}">
                </div>
            </div>


            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 贷款最大额 </label>
                <div class="col-sm-4 input-group">
                <span class="input-group-addon">
                    <i class="icon-envelope"></i>
                </span>
                    <input class="form-control" type="text" name="max_amount" value="{{$loan->max_amount}}">
                </div>
            </div>


            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 贷款最小天数 </label>
                <div class="col-sm-4 input-group">
                <span class="input-group-addon">
                    <i class="icon-envelope"></i>
                </span>
                    <input class="form-control" type="text" name="min_days" value="{{$loan->min_days}}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 贷款最大天数 </label>
                <div class="col-sm-4 input-group">
                <span class="input-group-addon">
                    <i class="icon-envelope"></i>
                </span>
                    <input class="form-control" type="text" name="max_days" value="{{$loan->max_days}}">
                </div>
            </div>





            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right"> 所需材料 </label>
                <div class="col-sm-4">
                    <textarea name="provision" class="form-control" rows="10"> {{$loan->provision}}</textarea>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right"> 申请条件 </label>
                <div class="col-sm-4">
                    <textarea name="apply" class="form-control" rows="10">{{$loan->apply}} </textarea>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right"> 产品特点 </label>
                <div class="col-sm-4">
                    <textarea name="feature" class="form-control" rows="10"> {{$loan->feature}}</textarea>
                </div>
            </div>
















            <div class="clearfix form-actions">
                <div class="col-md-offset-2 col-md-4">
                    <button class="btn btn-info" type="submit">
                        <i class="icon-ok bigger-110"></i>
                        提交
                    </button>

                    &nbsp; &nbsp; &nbsp;
                    <a class="btn" href="javascript:(history.back())">
                        <i class="icon-reply bigger-110"></i>
                        返回
                    </a>
                </div>
            </div>
        </form>
    </div>
    <!-- 图片容器 -->

@stop
@section('scripts')

@stop